<?php
$grid_size = (boolean) (string) $this->placeholder('grid-size');
if (!$grid_size) {
    $grid_size = 16;
} else {
    $grid_size = (string) $this->placeholder('grid-size');
}

Zend_Registry::set('grid-size', $grid_size);
?>
<!doctype html>
<html lang="en" class="no-js">
    <head>
        <meta charset="utf-8">
        <!--[if IE]><![endif]-->
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <?php echo $this->headTitle() ?>
        <meta name="description" content="">
        <meta name="author" content="AsiaClassified.com - Easy, Free, Local">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
        <link rel="shortcut icon" href="/favicon.ico">
        <link rel="apple-touch-icon" href="/apple-touch-icon.png">        
        <link rel="stylesheet" href="/css/style.css">
        <link rel="stylesheet" media="handheld" href="/css/handheld.css">
        <link rel="stylesheet" href="/css/grid_<?php echo $grid_size?>.css">
        <link rel="stylesheet" href="/css/grid_12.css">
        <link rel="stylesheet" href="/css/custom.css">
        <link rel="stylesheet" href="/css/custom_member.css">
        <link rel="stylesheet" href="/css/custom_post_ad.css">
        <script src="/js/modernizr-1.5.min.js"></script>
        <?php echo $this->headLink() ?>
        <?php echo $this->headStyle() ?>

    </head>
    <!--[if lt IE 7 ]> <body class="ie6 index"> <![endif]-->
    <!--[if IE 7 ]>    <body class="ie7 index"> <![endif]-->
    <!--[if IE 8 ]>    <body class="ie8 index"> <![endif]-->
    <!--[if IE 9 ]>    <body class="ie9 index"> <![endif]-->
    <!--[if gt IE 9]>  <body class="index">             <![endif]-->
    <!--[if !IE]><!--> <body class="post_ad login_option">         <!--<![endif]-->

        <div id="container" class="container container_12 post_ad login signup">

            <header class="header grid_12">
                <a href="/"><h1>AsiaClassified asiaclassified.com easy free local</h1></a>
            </header>

            <article>
                <?php echo $this->layout()->content; ?>                
            </article>
            <footer class="footer grid_12">
                <h6><a href="#">AsiaClassified.com</a></h6>
                <p>Copyright &copy; 2008-2010 HongKong. AsiaClassified.com All rights reserved.</p>
                <p class="nav"><a href="<?php echo $this->geturl('privacy','default',null,'default1')?>">Privacy Policy</a> <a href="<?php echo $this->geturl('term-of-use','default',null,'default1')?>">Terms of Use</a></p>
            </footer>

        </div>
        <!--! end of #container -->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        <script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
        <!--script src="/js/plugins.js?v=1"></script-->
        <script src="/js/script.js?v=1"></script>

        <!--[if lt IE 7 ]>
            <script src="js/dd_belatedpng.js?v=1"></script>
          <![endif]-->

        <!--script src="/js/profiling/yahoo-profiling.min.js?v=1"></script>
        <script src="/js/profiling/config.js?v=1"></script-->
        <!-- Javascript at the bottom for fast page loading -->
        <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
        <!--script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        <script>!window.jQuery && document.write('<script src="/js/jquery-1.4.2.min.js"><\/script>')</script-->
        <?php echo $this->headScript() ?>
        <?php echo $this->JQuery() ?>
                <!--script src="/js/plugins.js?v=1"></script-->
                <script src="/js/script.js?v=1"></script>

                <!--[if lt IE 7 ]>
                  <script src="/js/dd_belatedpng.js?v=1"></script>
                <![endif]-->

        <?php /*
                  <!-- yui profiler and profileviewer - remove for production -->
                  <script src="/js/profiling/yahoo-profiling.min.js?v=1"></script>
                  <script src="/js/profiling/config.js?v=1"></script>
                  <!-- end profiling code -->
                 */ ?>

        <?php if (defined('GOOGLE_ANALYTICS')): ?>
                    <!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
                         change the UA-XXXXX-X to be your site's ID -->
                    <script>
                        var _gaq = [['_setAccount', '<?php echo GOOGLE_ANALYTICS ?>'], ['_trackPageview']];
                        (function(d, t) {
                            var g = d.createElement(t),
                            s = d.getElementsByTagName(t)[0];
                            g.async = true;
                            g.src = '//www.google-analytics.com/ga.js';
                            s.parentNode.insertBefore(g, s);
                        })(document, 'script');
                    </script>
        <?php endif; ?>
        <?php echo $this->placeholder('at-the-bottom');?>
    </body>
</html>